package com.fundamental.client;

import com.fundamental.server.NIOServer;
import com.fundamental.server.ServerConfig;

import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class ClientBootStrap {

    public static void main(String[] args) throws UnknownHostException {

        ClientConfig config = new ClientConfig();
        //config.setAddress(InetAddress.getByName("127.0.0.1"));
        //config.setAddress(InetAddress.getByName("127.0.1.1"));
        config.setAddress(InetAddress.getByAddress(new byte[]{(byte) 192, (byte) 168, (byte) 136, (byte) 128}));
        //config.setInetAddress("127.0.0.1");
        config.setPort(7785);

        NIOClient.buildAndConnect(config);

    }
}
